<?php
if($actPost =="update")
{
    foreach($_POST as $key => $vl)
    {
        $p[$key] = gpc_getStringPost($key);
    }
    include('includes/class_account.php');
    if(!isValidEmail($p['Email']))
    {
        return;
    }
	$p['Content']	= str_replace("\n","<br>",$p['Content']);

    $subject= "Contact from ".$p['Email'];
    $msg    = "from: ".$p['fullname']."<br>";
    $msg   .= "email: ".$p['Email']."<br>";
    $msg    .= "subject: ".$p['Subject']."<br>";
    $msg    .= "Msg: ".$p['Content'];
    
    $email_admin= getConfig('EmailAdmin');
    send_email($email_admin,"",$subject,$msg);
    $msg    = getLang('Post Successs');
}
?>